---
import Layout from '../layouts/Layout.astro';
---

<Layout 
  title="数字资产交易平台 - 安全可靠的加密货币交易所"
  description="专业的数字资产交易平台，提供比特币、以太坊等主流加密货币交易服务，安全、高效、便捷。"
>
  <!-- Navigation -->
  <nav class="navbar">
    <div class="container">
      <div class="nav-content">
        <div class="logo">
          <span class="logo-icon">⚡</span>
          <span class="logo-text">欧亿</span>
        </div>
        
        <ul class="nav-menu">
          <li><a href="#home">首页</a></li>
          <li><a href="#about">关于欧亿交易所app</a></li>
          <li><a href="#features">欧亿交易所app功能</a></li>
          <li><a href="#contact">联系欧亿交易所app</a></li>
        </ul>
        
        <div class="nav-actions">
          <button class="search-btn">🔍</button>
          <button class="download-btn" onclick="handleRegister()">安卓APP下载</button>
        </div>
        
        <button class="mobile-menu-btn">☰</button>
      </div>
    </div>
  </nav>

  <!-- Hero Section -->
  <section class="hero">
    <div class="container">
      <div class="hero-content">
        <h1 class="hero-title">全球领先的数字资产交易平台</h1>
        <p class="hero-subtitle">安全、专业、高效的加密货币交易服务</p>
        <div class="hero-buttons">
          <button class="btn btn-primary" onclick="handleRegister()">立即注册</button>
          <button class="btn btn-secondary" onclick="handleRegister()">下载APP</button>
        </div>
      </div>
    </div>
  </section>

  <!-- Trust Indicators -->
  <section class="trust-section">
    <div class="container">
      <h2 class="section-title fade-in">深受全球用户信赖</h2>
      <p class="section-subtitle fade-in">安全、高效的服务赢得全球用户的信任与支持</p>
      
      <div class="stats-grid fade-in">
        <div class="stat-card">
          <div class="stat-number">2000万+</div>
          <div class="stat-label">注册用户</div>
        </div>
        <div class="stat-card">
          <div class="stat-number">3000万+</div>
          <div class="stat-label">日交易量</div>
        </div>
        <div class="stat-card">
          <div class="stat-number">200+</div>
          <div class="stat-label">支持币种</div>
        </div>
        <div class="stat-card">
          <div class="stat-number">99.9%</div>
          <div class="stat-label">系统稳定性</div>
        </div>
      </div>
    </div>
  </section>

  <!-- Features Section -->
  <section class="features-section">
    <div class="container">
      <h2 class="section-title fade-in">核心功能</h2>
      <p class="section-subtitle fade-in">一站式数字资产服务，满足您的多元化需求</p>
      
      <div class="features-grid">
        <div class="feature-card slide-in-left">
          <div class="feature-icon">💼</div>
          <h3 class="feature-title">资产管理</h3>
          <p class="feature-desc">专业的加密资产管理服务，确保资产安全与收益优化</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">🔒</div>
          <h3 class="feature-title">安全保障</h3>
          <p class="feature-desc">多重签名、冷存储及实时监控，确保资产安全无忧</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">⚡</div>
          <h3 class="feature-title">高效交易</h3>
          <p class="feature-desc">毫秒级撮合引擎，支持高频交易，流畅体验</p>
        </div>
        
        <div class="feature-card">
          <div class="feature-icon">🌐</div>
          <h3 class="feature-title">全球服务</h3>
          <p class="feature-desc">支持多语言，7×24小时客服，服务全球用户</p>
        </div>
      </div>
    </div>
  </section>

  <!-- FAQ Section -->
  <section class="faq-section">
    <div class="container">
      <h2 class="section-title">常见问题</h2>
      
      <div class="faq-list">
        <details class="faq-item">
          <summary class="faq-question">平台有哪些优势？</summary>
          <div class="faq-answer">
            <p>我们提供丰富的交易品种和高流动性，采用先进的技术架构与强大的风控系统，确保安全稳定。全球化服务支持多语言，用户体验佳，交易成本低。</p>
          </div>
        </details>
        
        <details class="faq-item">
          <summary class="faq-question">支持哪些币种？</summary>
          <div class="faq-answer">
            <p>支持比特币（BTC）、以太坊（ETH）、莱特币（LTC）、瑞波币（XRP）等主流币种，以及众多新兴代币和稳定币。</p>
          </div>
        </details>
        
        <details class="faq-item">
          <summary class="faq-question">交易费用如何？</summary>
          <div class="faq-answer">
            <p>现货交易手续费通常为0.1%至0.2%，VIP用户享受更低费率。具体费用根据交易量和会员等级而定。</p>
          </div>
        </details>
        
        <details class="faq-item">
          <summary class="faq-question">如何保证资产安全？</summary>
          <div class="faq-answer">
            <p>我们采用银行级别的安全措施，包括冷钱包存储、多重签名、SSL加密传输、实时风控监控等，全方位保护用户资产安全。</p>
          </div>
        </details>
      </div>
    </div>
  </section>

  <!-- Footer -->
  <footer class="footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h4>关于我们</h4>
          <ul>
            <li><a href="#">公司介绍</a></li>
            <li><a href="#">团队成员</a></li>
            <li><a href="#">联系我们</a></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4>产品服务</h4>
          <ul>
            <li><a href="#">现货交易</a></li>
            <li><a href="#">合约交易</a></li>
            <li><a href="#">理财产品</a></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4>帮助中心</h4>
          <ul>
            <li><a href="#">新手指南</a></li>
            <li><a href="#">常见问题</a></li>
            <li><a href="#">API文档</a></li>
          </ul>
        </div>
      </div>
      
      <div class="footer-bottom">
        <p>&copy; 2025 数字资产交易平台 版权所有</p>
      </div>
    </div>
  </footer>
</Layout>

<style>
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Navigation */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s;
  }

  .navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  }

  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
  }

  .logo-icon {
    font-size: 32px;
  }

  .nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
  }

  .nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
  }

  .nav-menu a:hover {
    color: #667eea;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .search-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s;
  }

  .search-btn:hover {
    transform: scale(1.1);
  }

  .download-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }

  .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  }

  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }

  /* Scroll Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* Hero Section */
  .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 180px 0 120px;
    text-align: center;
    margin-top: 70px;
  }

  .hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
  }

  .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .btn {
    padding: 15px 40px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
  }

  .btn-primary {
    background: white;
    color: #667eea;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }

  .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
  }

  .btn-secondary:hover {
    background: white;
    color: #667eea;
  }

  /* Trust Section */
  .trust-section {
    padding: 80px 0;
    background: #f8f9fa;
  }

  .section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: #2d3748;
  }

  .section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 60px;
    font-size: 18px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .stat-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }

  .stat-card:hover {
    transform: translateY(-5px);
  }

  .stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
  }

  .stat-label {
    font-size: 16px;
    color: #718096;
  }

  /* Features Section */
  .features-section {
    padding: 80px 0;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }

  .feature-card {
    padding: 40px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
  }

  .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
  }

  .feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }

  .feature-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2d3748;
  }

  .feature-desc {
    color: #718096;
    line-height: 1.6;
  }

  /* FAQ Section */
  .faq-section {
    padding: 80px 0;
    background: #f8f9fa;
  }

  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
  }

  .faq-question {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: #2d3748;
    transition: background 0.3s;
  }

  .faq-question:hover {
    background: #f7fafc;
  }

  .faq-question::before {
    content: '+';
    margin-right: 15px;
    font-size: 24px;
    color: #667eea;
  }

  .faq-item[open] .faq-question::before {
    content: '−';
  }

  .faq-answer {
    padding: 0 20px 20px 55px;
    color: #718096;
    line-height: 1.6;
  }

  /* Footer */
  .footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .footer-section ul {
    list-style: none;
  }

  .footer-section li {
    margin-bottom: 10px;
  }

  .footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-section a:hover {
    color: white;
  }

  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
  }

  @media (max-width: 768px) {
    .hero-title {
      font-size: 32px;
    }

    .hero-buttons {
      flex-direction: column;
    }

    .stats-grid,
    .features-grid {
      grid-template-columns: 1fr;
    }

    .nav-menu {
      display: none;
    }

    .mobile-menu-btn {
      display: block;
    }
  }
</style>

<script>
  // 注册跳转函数
  function handleRegister() {
    window.open('https://www.gghyxui.com/zh-hans/join?channelId=48006780', '_blank');
  }

  // 滚动动画
  const observerOptions = {
    threshold: 0.1,
    rootMargin: '0px 0px -100px 0px'
  };

  const observer = new IntersectionObserver((entries) => {
    entries.forEach(entry => {
      if (entry.isIntersecting) {
        entry.target.classList.add('visible');
      }
    });
  }, observerOptions);

  // 观察所有需要动画的元素
  document.querySelectorAll('.fade-in, .slide-in-left, .slide-in-right').forEach(el => {
    observer.observe(el);
  });

  // 导航栏滚动效果
  let lastScroll = 0;
  const navbar = document.querySelector('.navbar');

  window.addEventListener('scroll', () => {
    const currentScroll = window.pageYOffset;
    
    if (currentScroll > 50) {
      navbar.classList.add('scrolled');
    } else {
      navbar.classList.remove('scrolled');
    }
    
    lastScroll = currentScroll;
  });

  // 平滑滚动
  document.querySelectorAll('a[href^="#"]').forEach(anchor => {
    anchor.addEventListener('click', function (e) {
      e.preventDefault();
      const target = document.querySelector(this.getAttribute('href'));
      if (target) {
        target.scrollIntoView({
          behavior: 'smooth',
          block: 'start'
        });
      }
    });
  });
</script>
